﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MyDataProvider;

namespace Cfg
{
    public class SqlConnectionConfig : ICloneable
    {
        string _dataSource = "";
        string _database = "";
        MSSQL.Authorization _auth = new MSSQL.Authorization() 
        {
            Type = MSSQL.Authorization.AuthorizationType.None,
            UserId = "",
            Password = ""
        };
        string _table = "";
        string _schema = "";

        public string DataSource
        {
            get
            {
                return _dataSource;
            }
            set
            {
                _dataSource = value;
            }
        }
        public MSSQL.Authorization Auth
        {
            get
            {
                return _auth;
            }
            set
            {
                _auth = value;
            }
        }
        public string Database
        {
            get
            {
                return _database;
            }
            set
            {
                _database = value;
            }
        }
        public string Table
        {
            get
            {
                return _table;
            }
            set
            {
                _table = value;
            }
        }
        public string Schema
        {
            get
            {
                return _schema;
            }
            set
            {
                _schema = value;
            }
        }
        public object Clone()
        {
            return this.MemberwiseClone();
        }
    }
}
